package client.domain.ui.westPanel;

import static client.domain.SandboxMainKeys.WEST_PANEL_WIDTH;
import com.gwtext.client.core.Margins;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.layout.VerticalLayout;

/**
 * User: nbarrios
 * Date: Nov 9, 2009
 */
public class WestPanel extends Panel{

	private BorderLayoutData westData;

	//	Constructor
	public WestPanel() {
		super();
		this.setTitle("West");
		this.setLayout(new VerticalLayout());
		this.setCollapsible(true);
		this.setWidth(WEST_PANEL_WIDTH);

		westData = new BorderLayoutData(RegionPosition.WEST);
		westData.setSplit(true);
		westData.setMinSize(175);
		westData.setMaxSize(400);
		westData.setMargins(new Margins(0, 5, 0, 0));

	}

	//  Getters & Setters
	public BorderLayoutData getWestData() {
		return westData;
	}

	public void setWestData(BorderLayoutData westData) {
		this.westData = westData;
	}

}
